/* Do not modify this file directly. It is compiled from other files. */ !function(){function t(){if(this.complete){var e=this.getAttribute("data-lazy-src");if(e&&this.src!==e)this.addEventListener("onload",t);else{var d=this.width,n=this.height;d&&d>0&&n&&n>0&&(this.setAttribute("width",d),this.setAttribute("height",n),i(this))}}else this.addEventListener("onload",t)}var e=function(){for(var e=document.querySelectorAll("img[data-recalc-dims]"),i=0;i',t+=a[this.settings.name].render(this.options),t+=""}},o.prototype.generateLayoutClass=function(){if(this.settings){var t=this.options.layout;if(1!=parseInt(t.use_grid,10))return"";var e="",s=t.column_span;return 1==parseInt(s.xs.use,10)&&(e+=s.xs.class+" ",0==parseInt(s.xs.visible,10)&&(e+="sq-hidden-sm ")),1==parseInt(s.sm.use,10)&&(e+=s.sm.class+" ",0==parseInt(s.sm.visible,10)&&(e+="sq-hidden-md ")),1==parseInt(s.md.use,10)&&(e+=s.md.class+" ",0==parseInt(s.md.visible,10)&&(e+="sq-hidden-lg ")),1==parseInt(s.lg.use,10)&&(e+=s.lg.class+" ",0==parseInt(s.lg.visible,10)&&(e+="sq-hidden-xl ")),e}},o.prototype.generateCSS=function(){if(this.settings){var t="";t+="margin-top: "+(s=this.options.layout).box_model.margin.top+"px; ",t+="margin-bottom: "+s.box_model.margin.bottom+"px; ",t+="margin-left: "+s.box_model.margin.left+"px; ",t+="margin-right: "+s.box_model.margin.right+"px; ",t+="padding-top: "+s.box_model.padding.top+"px; ",t+="padding-bottom: "+s.box_model.padding.bottom+"px; ",t+="padding-left: "+s.box_model.padding.left+"px; ",t+="padding-right: "+s.box_model.padding.right+"px; ",1==parseInt(s.use_grid,10)||(1==parseInt(s.auto_width,10)?t+="width: auto; ":""===s.width||isNaN(s.width)||(t+="width: "+s.width+"px; "),1==parseInt(s.auto_height,10)?t+="height: auto; ":""===s.height||isNaN(s.height)||(t+="height: "+s.height+"px; "));var e,s=this.options.font;if(this.options.fontStyles="",s&&(t+="font-family: "+s.font_family+"; ",this.options.fontStyles+="font-family: "+s.font_family+"; ",t+="font-size: "+s.font_size+"px; ",this.options.fontStyles+="font-size: "+s.font_size+"px; ",t+="font-weight: "+s.font_weight+"; ",this.options.fontStyles+="font-weight: "+s.font_weight+"; ",t+="font-style: "+s.font_style+"; ",this.options.fontStyles+="font-style: "+s.font_style+"; ",t+="line-height: "+s.line_height+"px; ",this.options.fontStyles+="line-height: "+s.line_height+"px; ",t+="color: "+s.text_color+"; ",this.options.fontStyles+="color: "+s.text_color+"; ",t+="text-align: "+s.text_align+"; ",this.options.fontStyles+="text-align: "+s.text_align+"; ",t+="text-decoration: "+s.text_decoration+"; ",this.options.fontStyles+="text-decoration: "+s.text_decoration+"; ",t+="text-transform: "+s.text_transform+"; ",this.options.fontStyles+="text-transform: "+s.text_transform+"; ",t+="text-shadow: "+s.text_shadow+"; ",this.options.fontStyles+="text-shadow: "+s.text_shadow+"; "),s=this.options.style)t+="background-color: rgba("+(e=n(s.background_color)).r+", "+e.g+", "+e.b+", "+s.background_opacity+"); ",t+="opacity: "+s.opacity+"; ",t+="box-shadow: "+s.box_shadow+"; ",t+="border-width: "+s.border_width+"px; ",t+="border-style: "+s.border_style+"; ",t+="border-color: rgba("+(e=n(s.border_color)).r+", "+e.g+", "+e.b+", "+s.border_opacity+"); ",t+="border-radius: "+s.border_radius+"px; ";return t}}}(jQuery,(window,void document)); !function(s,o){var e={name:"Paragraph",iconClass:"fa fa-paragraph",controls:{text:{text:{name:"Text",type:"textarea",default:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit."}}},controlGroupIcons:{text:"fa fa-ellipsis-h"},content:function(){var e=this.controls.text.text.getVal();return e=(e=e.replace(/\\(.)/gm,"$1")).replace(/\n/gm,"
"),'

'+e+"

"},render:function(e){var t=e.text.text;return t=(t=t.replace(/\\(.)/gm,"$1")).replace(/\n/gm,"
"),'

'+t+"

"}};s.squaresRegisterElement&&s.squaresRegisterElement(e),s.squaresRendererRegisterElement(e);var t={name:"Heading",iconClass:"fa fa-header",controls:{heading:{text:{name:"Text",type:"text",default:"Lorem Ipsum"},heading:{name:"Heading",type:"select",options:["h1","h2","h3"],default:"h3"}}},controlGroupIcons:{heading:"fa fa-header"},content:function(){return"<"+this.controls.heading.heading.getVal()+' id="'+this.controls.general.id.getVal()+'" style="'+this.controls.general.css.getVal()+this.fontStyles+' margin: 0; padding: 0;" class="'+this.controls.general.classes.getVal()+'">'+this.controls.heading.text.getVal()+""},render:function(e){return"<"+e.heading.heading+' id="'+e.general.id+'" style="'+e.general.css+e.fontStyles+' margin: 0; padding: 0;" class="'+e.general.classes+'">'+e.heading.text+""}};s.squaresRegisterElement&&s.squaresRegisterElement(t),s.squaresRendererRegisterElement(t);var a={name:"Image",iconClass:"fa fa-camera",controls:{image:{url:{name:"Image URL",type:"text",default:"https://webcraftplugins.com/uploads/placeholder_image.png"},image_is_a_link:{name:"Image is a Link",type:"switch",default:0},link_to:{name:"Link to",type:"text",default:"#"}}},controlGroupIcons:{image:"fa fa-camera"},useFontControls:!1,content:function(){var e="";1==parseInt(this.controls.image.image_is_a_link.getVal(),10)&&(e+=''),e+='',1==parseInt(this.controls.image.image_is_a_link.getVal(),10)&&(e+="");var t=new Image;function a(){}return t.src=this.controls.image.url.getVal(),t.complete||t.addEventListener("load",a),e},render:function(e){var t="";1==parseInt(e.image.image_is_a_link,10)&&(t+=''),t+='',1==parseInt(e.image.image_is_a_link,10)&&(t+="");var a=new Image;function l(){s(o).trigger("squares_image_loaded")}return a.src=e.image.url,a.complete?l():a.addEventListener("load",l),t}};s.squaresRegisterElement&&s.squaresRegisterElement(a),s.squaresRendererRegisterElement(a);var l={name:"Video",iconClass:"fa fa-video-camera",controls:{video:{mp4_url:{name:"MP4 URL",type:"text",default:"http://webcraftplugins.com/uploads/example_video.mp4"},webm_url:{name:"WEBM URL",type:"text",default:"http://webcraftplugins.com/uploads/example_video.webm"},ogv_url:{name:"OGV URL",type:"text",default:"http://webcraftplugins.com/uploads/example_video.ogv"},video_is_a_link:{name:"Video is a Link",type:"switch",default:0},link_to:{name:"Link to",type:"text",default:"#"},autoplay:{name:"Autoplay",type:"switch",default:0},loop:{name:"Loop",type:"switch",default:0},controls:{name:"Controls",type:"switch",default:0}}},useFontControls:!1,controlGroupIcons:{video:"fa fa-video-camera"},content:function(){var e="";1==parseInt(this.controls.video.video_is_a_link.getVal(),10)&&(e+='');var t="";return 1==parseInt(this.controls.video.autoplay.getVal(),10)&&(t+=" autoplay "),1==parseInt(this.controls.video.loop.getVal(),10)&&(t+=" loop "),1==parseInt(this.controls.video.controls.getVal(),10)&&(t+=" controls "),e+="',1==parseInt(this.controls.video.video_is_a_link.getVal(),10)&&(e+=""),e},render:function(e){var t="";1==parseInt(e.video.video_is_a_link,10)&&(t+='');var a="";return 1==parseInt(e.video.autoplay,10)&&(a+=" autoplay "),1==parseInt(e.video.loop,10)&&(a+=" loop "),1==parseInt(e.video.controls,10)&&(a+=" controls "),t+="',1==parseInt(e.video.video_is_a_link,10)&&(t+=""),t}};s.squaresRegisterElement&&s.squaresRegisterElement(l),s.squaresRendererRegisterElement(l);var n={name:"YouTube",iconClass:"fa fa-youtube",useStyleControls:!1,useFontControls:!1,controls:{youtube:{embed_code:{name:"Embed Code",type:"textarea",default:''},allow_fullscreen:{name:"Allow Fullscreen",type:"switch",default:1},iframe_width:{name:"iframe Width",type:"int",default:320},iframe_auto_width:{name:"iframe Auto Width",type:"switch",default:1},iframe_height:{name:"iframe Height",type:"int",default:320}}},controlGroupIcons:{youtube:"fa fa-youtube"},content:function(){var e=this.controls.youtube.embed_code.getVal(),t="";return t+='
',e=e.replace("allowfullscreen",""),1==parseInt(this.controls.youtube.allow_fullscreen.getVal(),10)&&-1==e.indexOf("allowfullscreen")&&(e=e.replace(">"," allowfullscreen>")),t+=e=(e=1==parseInt(this.controls.youtube.iframe_auto_width.getVal(),10)?e.replace(/width="\d+"/g,'width="100%"'):e.replace(/width="\d+"/g,'width="'+this.controls.youtube.iframe_width.getVal()+'px"')).replace(/height="\d+"/g,'height="'+this.controls.youtube.iframe_height.getVal()+'px"'),t+="
"},render:function(e){var t=e.youtube.embed_code,a="";return a+='
',t=t.replace("allowfullscreen",""),1==parseInt(e.youtube.allow_fullscreen,10)&&-1==t.indexOf("allowfullscreen")&&(t=t.replace(">"," allowfullscreen>")),a+=t=(t=1==parseInt(e.youtube.iframe_auto_width,10)?t.replace(/width="\d+"/g,'width="100%"'):t.replace(/width="\d+"/g,'width="'+e.youtube.iframe_width+'px"')).replace(/height="\d+"/g,'height="'+e.youtube.iframe_height+'px"'),a+="
"}};s.squaresRegisterElement&&s.squaresRegisterElement(n),s.squaresRendererRegisterElement(n);var r={name:"Button",iconClass:"fa fa-link",controls:{button:{text:{name:"Text",type:"text",default:"Button"},link_to:{name:"Link to",type:"text",default:"#"},new_tab:{name:"Open in New Tab",type:"switch",default:0},display:{name:"Display",type:"button group",options:["inline-block","block"],default:"inline-block"},height:{name:"Height",type:"int",default:44},bg_color:{name:"Background Color",type:"color",default:"#2196f3"},text_color:{name:"Text Color",type:"color",default:"#ffffff"},border_radius:{name:"Border Radius",type:"int",default:10},padding:{name:"Padding Left/Right",type:"int",default:20}}},controlGroupIcons:{button:"fa fa-link"},content:function(){var e="";e+="display: "+this.controls.button.display.getVal()+"; ",e+="height: "+this.controls.button.height.getVal()+"px; ",e+="line-height: "+this.controls.button.height.getVal()+"px; ",e+="background-color: "+this.controls.button.bg_color.getVal()+"; ",e+="color: "+this.controls.button.text_color.getVal()+"; ",e+="border-radius: "+this.controls.button.border_radius.getVal()+"px; ",e+="padding-left: "+this.controls.button.padding.getVal()+"px; ",e+="padding-right: "+this.controls.button.padding.getVal()+"px; ";var t="";return 1==parseInt(this.controls.button.new_tab.getVal(),10)&&(t='target="_blank"'),'
'+this.controls.button.text.getVal()+"
"},render:function(e){var t="";t+="display: "+e.button.display+"; ",t+="height: "+e.button.height+"px; ",t+="line-height: "+e.button.height+"px; ",t+="background-color: "+e.button.bg_color+"; ",t+="color: "+e.button.text_color+"; ",t+="border-radius: "+e.button.border_radius+"px; ",t+="padding-left: "+e.button.padding+"px; ",t+="padding-right: "+e.button.padding+"px; ";var a="";return 1==parseInt(e.button.new_tab,10)&&(a='target="_blank"'),'
'+e.button.text+"
"}};s.squaresRegisterElement&&s.squaresRegisterElement(r),s.squaresRendererRegisterElement(r)}(jQuery,(window,document)); !function($,window,document,undefined){"use strict";var fullscreenMap=undefined,fullscreenMapParent=undefined,touch=!1;$.imageMapProInitialized=function(t){},$.imageMapProEventHighlightedShape=function(t,i){},$.imageMapProEventUnhighlightedShape=function(t,i){},$.imageMapProEventClickedShape=function(t,i){},$.imageMapProEventOpenedTooltip=function(t,i){},$.imageMapProEventClosedTooltip=function(t,i){},$.imageMapProEventSwitchedFloor=function(t,i){},$.imageMapProHighlightShape=function(t,i){var e=findImageMapWithName(t);if(e){var s=findShapeWithTitle(e.settings.general.name,i);if(s){var n=s.shape,a=s.index;if(-1===e.apiHighlightedShapes.indexOf(a)&&e.apiHighlightedShapes.push(a),e.connectedShapes[n.id])for(var o=0;o$(document).width()-e&&(t=$(document).width()-e),i>$(document).height()-s&&(i=$(document).height()-s),{x:t,y:i}}function shuffle(t){for(var i,e,s=t.length;0!==s;)e=Math.floor(Math.random()*s),i=t[--s],t[s]=t[e],t[e]=i;return t}function isMobile(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function lerp(t,i,e){return t*(1-e)+i*e}function easeOutBounce(t,i,e,s,n){return(i/=n)<1/2.75?s*(7.5625*i*i)+e:i<2/2.75?s*(7.5625*(i-=1.5/2.75)*i+.75)+e:i<2.5/2.75?s*(7.5625*(i-=2.25/2.75)*i+.9375)+e:s*(7.5625*(i-=2.625/2.75)*i+.984375)+e}$.extend(Plugin.prototype,{init:function(t){this.parseSettings(),(instances[this.settings.general.name]=this).id=100*Math.random(),this.connectedShapes=[];for(var i=0;i',i+='
',isTrue(this.settings.zooming.enable_zooming)&&isTrue(this.settings.zooming.enable_navigator)&&(i+='
',""!=this.settings.image.url&&(i+=' ',i+=' '),i+='
',""!=this.settings.image.url&&(i+=' '),i+="
"),isTrue(this.settings.zooming.enable_zooming)&&isTrue(this.settings.zooming.enable_zoom_buttons)&&(i+='
',i+='
'),isTrue(this.settings.layers.enable_layers)){i+='
',i+='
',i+='
',i+=' ",i+="
"}if(isTrue(this.settings.zooming.enable_zooming)&&isTrue(this.settings.zooming.hold_ctrl_to_zoom)){var n="CTRL";this.mac&&(n="⌘"),i+='
',i+='
',i+='
Hold
'+n+"
to Zoom
",i+="
",i+="
"}i+="
",i+='
',i+='
',i+='
',""!=this.settings.image.url&&(i+=' '),i+="
",i+="
",i+="
",i+="",this.root.html(i),this.wrap=this.root.find(".imp-wrap"),this.zoomWrap=this.root.find(".imp-zoom-wrap"),this.translateWrap=this.root.find(".imp-translate-wrap"),this.ui=this.wrap.find(".imp-ui"),this.scrollMessage=this.wrap.find(".imp-ui-scroll-message-wrap"),this.root.addClass("imp-initialized"),this.root.attr("data-image-map-pro-id",this.settings.id),$('[data-imp-tooltips-container="'+this.settings.id+'"]').remove(),$("body").prepend('
'),this.tooltipsContainer=$('[data-imp-tooltips-container="'+this.settings.id+'"]'),this.events(),this.centerImageMap(),this.drawShapes(),this.generateShapeStyleClasses(),this.addTooltips(),this.initFullscreen(),this.initZoom(),this.drawShapesMenu(),this.adjustSize(),this.initNavigator(),this.initLayers(),this.animateShapesLoop(),$.imageMapProInitialized(this.settings.general.name),t&&t()},parseSettings:function(){this.settings.general.image_url&&(this.settings.image.url=this.settings.general.image_url);for(var t=0;t'),this.zoomWrap.prepend('
'),this.shapeContainer=this.wrap.find(".imp-shape-container"),this.imageBackgroundsContainer=this.wrap.find(".imp-image-backgrounds-container");var e="",s=this.settings.general.width,n=this.settings.general.height;isTrue(this.settings.general.responsive)&&(s=this.settings.general.naturalWidth,n=this.settings.general.naturalHeight);var a='';for(t=0;t',e+=' ',e+=" "}if("custom"===y.default_style.icon_type&&0'),isTrue(y.default_style.icon_shadow)){var p="";p+="width: "+y.width+"px;",p+="height: "+y.height+"px;",e+='
'}if(isTrue(this.settings.shapes.glowing_shapes)){var l="";l+="width: "+y.width/3+"px;",l+="height: "+y.height/3+"px;",l+="margin-left: "+-y.width/6+"px;",l+="margin-top: "+-y.height/6+"px;",l+="border-radius: "+y.width/3+"px;",l+="background: rgba("+(d=hexToRgb(this.settings.shapes.glowing_shapes_color)||{r:0,b:0,g:0}).r+", "+d.g+", "+d.b+", "+this.settings.shapes.glow_opacity+");",e+='
'}e+=""}else{var g="";if(isTrue(this.settings.shapes.glowing_shapes)){l="";l+="box-shadow: 0 0 20px 15px rgba("+(d=hexToRgb(this.settings.shapes.glowing_shapes_color)||{r:0,b:0,g:0}).r+", "+d.g+", "+d.b+", "+this.settings.shapes.glow_opacity+");",g+='
'}e+='
'}e+='
'}e+='
'}}a+="";var v="";for(t=0;t
'}this.shapeContainer.html(e+a),this.imageBackgroundsContainer.html(v)},generateShapeStyleClasses:function(){$("style#"+this.settings.id).remove();var t=document.createElement("style");$(t).attr("id",this.settings.id);for(var i="",e=0;e';var s="";if(this.responsiveShapesMenu&&(s='
'),isTrue(this.settings.shapes_menu.enable_search)&&(t+='"),t+='
',isTrue(this.settings.shapes_menu.group_by_floor)&&isTrue(this.settings.layers.enable_layers))for(var n=0;n'+a.title+"
";for(var o=0;o'+h.title+"")}}else for(o=0;o'+h.title+"")}if(t+=" ",t+="",isTrue(this.settings.shapes_menu.detached_menu))$('[data-imp-detached-menu="'+this.settings.id+'"]').html(t),this.shapesMenuWrap=$('[data-imp-detached-menu="'+this.settings.id+'"]').find(".imp-shapes-menu-wrap");else if(this.responsiveShapesMenu){this.responsiveShapesMenuWrap||($("body").append('
'),this.responsiveShapesMenuWrap=$('.imp-responsive-menu[data-imp-id="'+this.settings.id+'"]')),this.responsiveShapesMenuWrap.append(t),this.shapesMenuWrap=this.responsiveShapesMenuWrap.find(".imp-shapes-menu-wrap");var r="";r+='
',r+='',r+="
",this.ui.append(r),this.shapesMenuResponsiveButton=this.ui.find(".imp-shapes-menu-button"),0<$(".imp-ui-layers-menu-wrap").length&&$(".imp-ui-layers-menu-wrap").css({right:70}),$("#imp-fullscreen-wrap").find(".imp-fullscreen-root-wrap").removeClass("imp-shapes-menu-left"),$("#imp-fullscreen-wrap").find(".imp-fullscreen-root-wrap").removeClass("imp-shapes-menu-right")}else isTrue(this.settings.runtime.is_fullscreen)?($("#imp-fullscreen-wrap").find(".imp-shapes-menu-wrap").remove(),$("#imp-fullscreen-wrap").append(t),0===$("#imp-fullscreen-wrap").find(".imp-fullscreen-root-wrap").length&&this.root.wrap('
'),this.shapesMenuWrap=$("#imp-fullscreen-wrap").find(".imp-shapes-menu-wrap"),"left"===this.settings.shapes_menu.menu_position?$("#imp-fullscreen-wrap").find(".imp-fullscreen-root-wrap").addClass("imp-shapes-menu-left"):$("#imp-fullscreen-wrap").find(".imp-fullscreen-root-wrap").addClass("imp-shapes-menu-right")):(0===this.root.find(".imp-shapes-menu-outer-wrap").length&&this.wrap.wrap('
'),"left"===this.settings.shapes_menu.menu_position?this.root.find(".imp-shapes-menu-outer-wrap").prepend(t):this.root.find(".imp-shapes-menu-outer-wrap").append(t),this.shapesMenuWrap=this.root.find(".imp-shapes-menu-wrap"),isTrue(this.settings.shapes_menu.enable_search)?this.shapesMenuWrap.height(this.wrap.height()-73):this.shapesMenuWrap.height(this.wrap.height()));this.shapesMenuWrap.find('input[data-image-map-pro-search-id="'+this.settings.id+'"]').val(this.settings.runtime.menu_search_string),this.updateMenuSearch(),this.shapesMenuWrap.find(".imp-shapes-menu-scroll-wrap").scrollTop(this.settings.runtime.menu_scroll)}},addTooltips:function(){if("always"===this.settings.tooltips.fullscreen_tooltips||"mobile-only"===this.settings.tooltips.fullscreen_tooltips&&isMobile()){this.fullscreenTooltipsContainer||($('.imp-fullscreen-tooltips-container[data-image-map-id="'+this.settings.id+'"]').remove(),$("body").prepend('
'),this.fullscreenTooltipsContainer=$('.imp-fullscreen-tooltips-container[data-image-map-id="'+this.settings.id+'"]'));for(var t="",i=0;i',t+='
',"plain-text"===n.tooltip_content.content_type){e="";t+='
'+n.tooltip_content.plain_text+"
"}else n.tooltip_content.squares_json?t+=$.squaresRendererRenderObject(n.tooltip_content.squares_json):t+=$.squaresRendererRenderObject(n.tooltip_content.squares_settings);t+=""}}this.fullscreenTooltipsContainer.html(t)}else{for(t="",i=0;i',"top"===n.tooltip_style.position&&(t+='
'),"bottom"===n.tooltip_style.position&&(t+='
'),"left"===n.tooltip_style.position&&(t+='
'),"right"===n.tooltip_style.position&&(t+='
');e="";e+="color: "+n.tooltip_content.plain_text_color+";";var a={containers:[{id:"sq-container-403761",settings:{elements:[{settings:{name:"Paragraph",iconClass:"fa fa-paragraph"},options:{text:{text:n.title}}}]}}]};t+='
'+$.squaresRendererRenderObject(a)+"
","plain-text"===n.tooltip_content.content_type?t+='
'+n.tooltip_content.plain_text+"
":n.tooltip_content.squares_json?t+=$.squaresRendererRenderObject(n.tooltip_content.squares_json):t+=$.squaresRendererRenderObject(n.tooltip_content.squares_settings),t+=""}}this.tooltipsContainer.prepend(t),isTrue(this.settings.tooltips.sticky_tooltips)&&this.tooltipsContainer.addClass("imp-sticky-tooltips")}},initFullscreen:function(){if(isTrue(this.settings.fullscreen.enable_fullscreen_mode)){var t="";t+="background: "+this.settings.fullscreen.fullscreen_button_color+"; ",t+="color: "+this.settings.fullscreen.fullscreen_button_text_color+"; ";var i='';isTrue(this.settings.runtime.is_fullscreen)&&(i='');var e="Go Fullscreen";isTrue(this.settings.runtime.is_fullscreen)&&(e="Close Fullscreen");var s="";"icon"===this.settings.fullscreen.fullscreen_button_type&&(s+=i),"text"===this.settings.fullscreen.fullscreen_button_type&&(s+=e),"icon_and_text"===this.settings.fullscreen.fullscreen_button_type&&(s+=i+" "+e);var n="";"icon"===this.settings.fullscreen.fullscreen_button_type&&(n+="imp-fullscreen-button-icon-only");var a="";a+='
',a+=s,a+="
",this.ui.append(a),isTrue(this.settings.runtime.is_fullscreen)&&($(window).scrollTop(0),fullscreenMap=this);var o=this.ui.find(".imp-fullscreen-button");1!==parseInt(this.settings.fullscreen.fullscreen_button_position,10)&&4!==parseInt(this.settings.fullscreen.fullscreen_button_position,10)||o.css({"margin-left":-o.outerWidth()/2}),isTrue(this.settings.fullscreen.start_in_fullscreen_mode)&&0===this.settings.runtime.is_fullscreen&&(this.settings.fullscreen.start_in_fullscreen_mode=0,this.toggleFullscreen())}},initNavigator:function(){isTrue(this.settings.zooming.enable_zooming)&&isTrue(this.settings.zooming.enable_navigator)&&(this.uiNavigatorRoot=this.ui.find(".imp-ui-navigator-root"),this.uiNavigatorImage=this.ui.find(".imp-ui-navigator-window-image"),this.adjustNavigatorSize())},initLayers:function(){if(isTrue(this.settings.layers.enable_layers)){for(var t=!1,i=0;ithis.wrapOffsetLeft&&i.xthis.wrapOffsetTop&&i.ythis.wrapOffsetLeft+this.wrapWidth||e.ythis.wrapOffsetTop+this.wrapHeight)&&(n=!0),s||!n){if(isTrue(this.settings.zooming.enable_zooming)){if(this.panningOnNavigator){var a=(e.x-this.uiNavigatorRoot.offset().left)/this.navigatorRatio*this.targetZoom,o=(e.y-this.uiNavigatorRoot.offset().top)/this.navigatorRatio*this.targetZoom;this.panTo(a,o)}if(this.pinching)return this.pinch(t),void(this.didPan=!0);if(this.panning){e=this.getEventCoordinates(t);return this.pan(e.x,e.y),void(this.didPan=!0)}}if(1===$(t.target).closest(".imp-ui").length)return this.unhighlightAllShapes(),void("mouseover"===this.settings.tooltips.show_tooltips&&this.hideAllTooltips());-1!==i&&(isTrue(this.settings.shapes.glowing_shapes)&&isTrue(this.settings.shapes.stop_glowing_on_mouseover)&&this.wrap.addClass("imp-no-glow"),this.didPan||(this.isShapeHighlighted(i)||(this.unhighlightAllShapes(),"mouseover"===this.settings.tooltips.show_tooltips&&this.hideAllTooltips(),isTrue(this.settings.tooltips.show_title_on_mouseover)&&"click"===this.settings.tooltips.show_tooltips&&this.hideAllTitles(),this.highlightShape(i,!0)),isTrue(this.settings.tooltips.enable_tooltips)&&("mouseover"===this.settings.tooltips.show_tooltips&&isTrue(this.settings.spots[i].tooltip.enable_tooltip)&&this.showTooltip(i),"click"===this.settings.tooltips.show_tooltips&&isTrue(this.settings.tooltips.show_title_on_mouseover)&&isTrue(this.settings.spots[i].tooltip.enable_tooltip)&&this.showTooltipTitle(i),0this.wrapOffsetLeft&&o.xthis.wrapOffsetTop&&o.ythis.wrapOffsetLeft+this.wrapWidth||o.ythis.wrapOffsetTop+this.wrapHeight)&&!this.settings.runtime.is_fullscreen)&&(this.hideAllTooltips(),this.didPan||this.unhighlightAllShapes()),t.originalEvent.touches&&0===t.originalEvent.touches.length&&(this.didPan=!1),t.originalEvent.touches||(this.didPan=!1)}}},handleKeyDownEvent:function(t){t.ctrlKey&&(this.ctrlKeyDown=!0),t.metaKey&&(this.cmdKeyDown=!0)},handleKeyUpEvent:function(t){this.ctrlKeyDown=!1,this.cmdKeyDown=!1},getEventRelativeCoordinates:function(t){var i,e;if("touchstart"===t.type||"touchmove"===t.type||"touchend"===t.type||"touchcancel"===t.type){var s=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0];i=s.pageX,e=s.pageY}else"mousedown"!==t.type&&"mouseup"!==t.type&&"mousemove"!==t.type&&"mouseover"!==t.type&&"mouseout"!==t.type&&"mouseenter"!==t.type&&"mouseleave"!==t.type||(i=t.pageX,e=t.pageY);return i-=this.zoomWrap.offset().left,e-=this.zoomWrap.offset().top,{x:i=i/(this.wrap.width()*this.zoom)*100,y:e=e/(this.wrap.height()*this.zoom)*100}},getEventCoordinates:function(t){var i,e;if("touchstart"===t.type||"touchmove"===t.type||"touchend"===t.type||"touchcancel"===t.type){var s=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0];i=s.pageX,e=s.pageY}else"mousedown"!==t.type&&"mouseup"!==t.type&&"mousemove"!==t.type&&"mouseover"!==t.type&&"mouseout"!==t.type&&"mouseenter"!==t.type&&"mouseleave"!==t.type||(i=t.pageX,e=t.pageY);return{x:i,y:e}},matchShapeToCoords:function(t){for(var i=this.settings.spots.length-1;0<=i;i--)if(!isTrue(this.settings.layers.enable_layers)||parseInt(this.settings.spots[i].layerID,10)===parseInt(this.settings.runtime.layerID,10)){var e=this.settings.spots[i];if(!isTrue(e.static)){if("poly"===e.type||"path"===e.type){var s=t.x/100*this.zoomWrap.width(),n=t.y/100*this.zoomWrap.height();if(isPointInsidePolygon(s=s*this.settings.general.naturalWidth/this.zoomWrap.width(),n=n*this.settings.general.naturalHeight/this.zoomWrap.height(),e.vs))return i}if("spot"===e.type){var a=e.width<44?44:e.width,o=e.height<44?44:e.height;a/=this.zoom,o/=this.zoom;s=t.x/100*this.wrap.width(),n=t.y/100*this.wrap.height();var h=e.x/100*this.wrap.width()-a/2,r=e.y/100*this.wrap.height()-o/2,p=a,l=o;if(isTrue(e.default_style.icon_is_pin)&&isTrue(e.default_style.use_icon)&&(r-=o/2,e.height<44&&(r+=e.height/2)),isPointInsideRect(s,n,h,r,p,l))return i}if("rect"===e.type&&isPointInsideRect(t.x,t.y,e.x,e.y,e.width,e.height))return i;if("oval"===e.type)if(isPointInsideEllipse(s=t.x,n=t.y,e.x+e.width/2,e.y+e.height/2,h=e.width/2,r=e.height/2))return i;e.type}}return-1},matchShapeToEvent:function(t){return $(t.target).hasClass("imp-shape")||0<$(t.target).closest(".imp-shape").length?$(t.target).data("index")||$(t.target).closest(".imp-shape").data("index"):-1},isPointInsideVisibleTooltip:function(t){for(var i=0;ir&&(r=s.x),s.y>p&&(p=s.y);for(e=0;er&&(r=i[e].x),i[e].y>p&&(p=i[e].y);n=r-o,a=p-h}else"spot"===s.type?((n/=this.wrapWidth)<25&&(n=25),(a/=this.wrapHeight)<25&&(a=25)):(n=s.width,a=s.height);var l=0;a<=n&&(l=n),nthis.maxZoomLevel&&(g=this.maxZoomLevel);var d=0,u=0;if(u="spot"===s.type?(d=s.x,s.y):(d=s.x+s.width/2,s.y+s.height/2),0'),$("#imp-temp-link").attr("href",s.actions.link),isTrue(s.actions.open_link_in_new_window)?$("#imp-temp-link").attr("target","_blank"):$("#imp-temp-link").removeAttr("target"),$("#imp-temp-link")[0].click()),"run-script"===s.actions.click&&eval(s.actions.script.replace("
","")),$.imageMapProEventClickedShape(this.settings.general.name,this.settings.spots[i].title)},showTooltip:function(t,i){var e=this.settings.spots[t];if("text"!==e.type&&-1==this.openedTooltips.indexOf(t)){if(isTrue(this.settings.tooltips.show_title_on_mouseover)&&"click"===this.settings.tooltips.show_tooltips)(a=this.tooltipsContainer.find('.imp-tooltip[data-index="'+t+'"]')).find(".imp-tooltip-title").hide(),a.find(".imp-tooltip-plain-text").show(),a.find(".squares-container").show(),a.css({left:0,top:0});if(""!=e.connected_to&&isTrue(e.use_connected_shape_tooltip)){var s=this.getIndexOfShapeWithID(e.connected_to);this.showTooltip(s)}else{if(0c&&(h+=c-(a+this.wrapOffsetLeft+h)),o+this.wrapOffsetTop<0&&(r=r+o+this.wrapOffsetTop,o=-this.wrapOffsetTop),o+this.wrapOffsetTop+r>m&&(r+=m-(o+this.wrapOffsetTop+r))):(a<0&&(h+=a,a=0),a+h>this.wrapWidth&&(h=this.wrapWidth-a),o<0&&(r+=o,o=0),o+r>this.wrapHeight&&(r=this.wrapHeight-o)),"left"===g.tooltip_style.position&&(d=a-s-20,u=o+r/2-n/2),"right"===g.tooltip_style.position&&(d=a+h+20,u=o+r/2-n/2),"top"===g.tooltip_style.position&&(d=a+h/2-s/2,u=o-n-20),"bottom"===g.tooltip_style.position&&(d=a+h/2-s/2,u=o+r+20);var v={x:d,y:u};isTrue(this.settings.tooltips.constrain_tooltips)&&((v=fitRectToScreen(d+this.wrapOffsetLeft,u+this.wrapOffsetTop,s,n)).x-=this.wrapOffsetLeft,v.y-=this.wrapOffsetTop),v.x+=g.tooltip_style.offset_x/100*this.wrapWidth,v.y+=g.tooltip_style.offset_y/100*this.wrapHeight,e.css({left:v.x+this.wrapOffsetLeft-this.tooltipsContainer.offset().left,top:v.y+this.wrapOffsetTop-this.tooltipsContainer.offset().top})}},updateOpenedTooltipsPosition:function(){for(var t=0;t
'),$("#image-map-pro-"+t.id).imageMapPro(t),this.disableEvents(),fullscreenMapParent=this}},resetZoomAndPan:function(){this.zoom=1,this.targetZoom=1,this.targetPanX=0,this.targetPanY=0,this.actualPanX=0,this.actualPanY=0,this.redraw(!1)},zoomIn:function(t){if(this.targetZoomthis.maxZoomLevel&&(t=this.maxZoomLevel),t<1&&(t=1),this.targetZoom=t;var s=(this.wrapWidth*this.targetZoom-this.wrapWidth*this.zoom)/2,n=(this.wrapHeight*this.targetZoom-this.wrapHeight*this.zoom)/2;if(i&&e){var a=i-this.zoomWrap.offset().left,o=e-this.zoomWrap.offset().top,h=s*((this.wrapWidth*this.zoom/2-a)/(this.wrapWidth*this.zoom/2)),r=n*((this.wrapHeight*this.zoom/2-o)/(this.wrapHeight*this.zoom/2));this.targetPanX-=s,this.targetPanY-=n,this.targetPanX+=h,this.targetPanY+=r}0h?(this.actualPanX>-a&&(this.actualPanX=-a),this.actualPanXr?(this.actualPanY>-o&&(this.actualPanY=-o),this.actualPanY$&');i!=e?($(this).show(),$(this).html(e)):($(this).hide(),$(this).html(i))})):(this.shapesMenuWrap.removeClass("imp-searching"),$(".imp-shapes-menu-shape-title, .imp-shapes-menu-layer-title").each(function(){$(this).show(),$(this).html($(this).data("imp-content"))})),this.settings.runtime.menu_search_string=s},displayScrollMessage:function(){this.scrollMessage.fadeIn(),clearTimeout(this.hideScrollMessageTimeout);var t=this;this.hideScrollMessageTimeout=setTimeout(function(){t.scrollMessage.fadeOut()},1e3)},showResponsiveShapesMenu:function(){this.responsiveShapesMenuWrap&&(this.responsiveShapesMenuWrap.addClass("imp-responsive-menu-visible"),$("body").addClass("imp-noscroll"))},hideResponsiveShapesMenu:function(){this.responsiveShapesMenuWrap&&(this.responsiveShapesMenuWrap.removeClass("imp-responsive-menu-visible"),$("body").removeClass("imp-noscroll"))}}),$.fn[pluginName]=function(t){return this.each(function(){$.data(this,"plugin_"+pluginName,new Plugin(this,t))})}}(jQuery,window,document),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}(function(d){function i(t){var i=t||window.event,e=v.call(arguments,1),s=0,n=0,a=0,o=0,h=0,r=0;if((t=d.event.fix(i)).type="mousewheel","detail"in i&&(a=-1*i.detail),"wheelDelta"in i&&(a=i.wheelDelta),"wheelDeltaY"in i&&(a=i.wheelDeltaY),"wheelDeltaX"in i&&(n=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(n=-1*a,a=0),s=0===a?n:a,"deltaY"in i&&(s=a=-1*i.deltaY),"deltaX"in i&&(n=i.deltaX,0===a&&(s=-1*n)),0!==a||0!==n){if(1===i.deltaMode){var p=d.data(this,"mousewheel-line-height");s*=p,a*=p,n*=p}else if(2===i.deltaMode){var l=d.data(this,"mousewheel-page-height");s*=l,a*=l,n*=l}if(o=Math.max(Math.abs(a),Math.abs(n)),(!f||o50&&d()},window.addEventListener("scroll",o)):n.classList.contains("hide-on-time")&&setTimeout(d,1e3*n.getAttribute("data-hide-timeout"));var c=!1;function d(e){if(!c){c=!0,e&&e.preventDefault&&e.preventDefault(),n.classList.contains("hide-on-scroll")&&window.removeEventListener("scroll",o);var t=new Date;t.setTime(t.getTime()+24*n.getAttribute("data-consent-expiration")*60*60*1e3),document.cookie="eucookielaw="+t.getTime()+";path=/;expires="+t.toGMTString(),n.classList.contains("ads-active")&&n.classList.contains("hide-on-button")&&(document.cookie="personalized-ads-consent="+t.getTime()+";path=/;expires="+t.toGMTString()),n.classList.add("hide"),setTimeout(function(){n.parentNode.removeChild(n);var e=document.querySelector(".widget.widget_eu_cookie_law_widget");e.parentNode.removeChild(e)},400)}}}();; /* Do not modify this file directly. It is compiled from other files. */ /* globals IntersectionObserver */ var jetpackLazyImagesModule=function(){var t,e,n,o,i={rootMargin:"200px 0px",threshold:.01},r=0;a();var s=document.querySelector("body");function a(){if(t=document.querySelectorAll("img.jetpack-lazy-image:not(.jetpack-lazy-image--handled)"),r=t.length,e&&e.disconnect(),"IntersectionObserver"in window)for(e=new IntersectionObserver(c,i),o=0;o0&&(r--,e.unobserve(o.target),h(o.target))}}function h(t){var e,n,o;if(!(!t instanceof HTMLImageElement)){e=t.getAttribute("data-lazy-srcset"),n=t.getAttribute("data-lazy-sizes"),t.removeAttribute("data-lazy-srcset"),t.removeAttribute("data-lazy-sizes"),t.removeAttribute("data-lazy-src"),t.classList.add("jetpack-lazy-image--handled"),t.setAttribute("data-lazy-loaded",1),n&&t.setAttribute("sizes",n),e?t.setAttribute("srcset",e):t.removeAttribute("srcset");try{o=new Event("jetpack-lazy-loaded-image",{bubbles:!0,cancelable:!0})}catch(t){(o=document.createEvent("Event")).initEvent("jetpack-lazy-loaded-image",!0,!0)}t.dispatchEvent(o)}}s&&(s.addEventListener("is.post-load",a),s.addEventListener("jetpack-lazy-images-load",a))}; /** * The following is an Intersection observer polyfill which is licensed under * the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE and can be found at: * https://github.com/w3c/IntersectionObserver/tree/master/polyfill */ /** * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE. * * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document * */ /** * The following is an Intersection observer polyfill which is licensed under * the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE and can be found at: * https://github.com/w3c/IntersectionObserver/tree/master/polyfill */ /** * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE. * * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document * */ !function(t,e){"use strict";if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var n=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},i.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},i.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(r(t,"resize",this._checkForIntersections,!0),r(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(i){var r=i.element,s=a(r),c=this._rootContainsTarget(r),h=i.entry,u=e&&c&&this._computeTargetAndRootIntersection(r,n),l=i.entry=new o({time:t.performance&&performance.now&&performance.now(),target:r,boundingClientRect:s,rootBounds:n,intersectionRect:u});h?e&&c?this._hasCrossedThreshold(h,l)&&this._queuedEntries.push(l):h&&h.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(n,o){if("none"!=t.getComputedStyle(n).display){for(var i,r,s,c,u,l,d,p,g=a(n),f=h(n),v=!1;!v;){var m=null,b=1==f.nodeType?t.getComputedStyle(f):{};if("none"==b.display)return;if(f==this.root||f==e?(v=!0,m=o):f!=e.body&&f!=e.documentElement&&"visible"!=b.overflow&&(m=a(f)),m&&(i=m,r=g,s=void 0,c=void 0,u=void 0,l=void 0,d=void 0,p=void 0,s=Math.max(i.top,r.top),c=Math.min(i.bottom,r.bottom),u=Math.max(i.left,r.left),l=Math.min(i.right,r.right),p=c-s,!(g=(d=l-u)>=0&&p>=0&&{top:s,bottom:c,left:u,right:l,width:d,height:p})))break;f=h(f)}return g}},i.prototype._getRootRect=function(){var t;if(this.root)t=a(this.root);else{var n=e.documentElement,o=e.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i